home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-19 | 2.0 KB | 85 lines | [TEXT/MPS ] |
- //# Copyright: © 1993-94 by Apple Computer, Inc., all rights reserved.
- #ifndef _UNDO_
- #define _UNDO_
-
- #ifndef _ODOBJECT_
- #include "ODObject.idl"
- #endif
-
- //==============================================================================
- // Constants
- //==============================================================================
-
- //==============================================================================
- // Classes defined in this interface
- //==============================================================================
-
- interface ODUndo;
-
- //==============================================================================
- // Classes used by this interface
- //==============================================================================
-
- interface ODPart;
-
-
- //==============================================================================
- // ODUndo
- //==============================================================================
-
- interface ODUndo : ODObject
- {
-
-
- void AddActionToHistory(in ODPart whichPart,
- in ODActionData actionData,
- in ODActionType actionType,
- in ODName undoActionLabel,
- in ODName redoActionLabel);
-
- void Undo();
-
- void Redo();
-
- void MarkActionHistory();
-
- void ClearActionHistory(in ODRespectMarksChoices respectMarks);
-
- void ClearRedoHistory();
-
- ODBoolean PeekUndoHistory(in ODPart part,
- inout ODActionData actionData,
- inout ODActionType actionType,
- inout ODName actionLabel);
-
- ODBoolean PeekRedoHistory(inout ODPart part,
- inout ODActionData actionData,
- inout ODActionType actionType,
- inout ODName actionLabel);
-
- #ifdef __SOMIDL__
- implementation
- {
- override:
- somInit,
- somUninit,
- Purge;
-
- releaseorder:
- InitUndo,
- AddActionToHistory,
- Undo,
- Redo,
- MarkActionHistory,
- ClearActionHistory,
- ClearRedoHistory,
- PeekUndoHistory,
- PeekRedoHistory;
-
-
- };
- #endif
- };
-
- #endif // _UNDO_
-